package com.nian.images.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 图片信息表
 * </p>
 *
 * @author zhangmj
 * @since 2020-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ImagesApp对象", description="图片信息表")
public class ImagesApp extends Model<ImagesApp> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "数据主键")
      @TableId(value = "images_id", type = IdType.AUTO)
    private Integer imagesId;

    @ApiModelProperty(value = "图片名称")
    private String imagesName;

    @ApiModelProperty(value = "图片编号")
    private String imagesNum;

    @ApiModelProperty(value = "图片代码")
    private String imagesCode;

    @ApiModelProperty(value = "图片简介")
    private String imagesInfo;

    @ApiModelProperty(value = "图片类型标识")
    private Integer imagesType;

    @ApiModelProperty(value = "图片文件后缀")
    private String imagesSuffix;

    @ApiModelProperty(value = "图片地址")
    private String imagesUrl;

    @ApiModelProperty(value = "图片大小")
    private Long imagesSize;

    @ApiModelProperty(value = "图片MD5")
    private String imagesMd5;

    @ApiModelProperty(value = "图片文件目录")
    private String imagesFilePath;

    @ApiModelProperty(value = "图片文件名称")
    private String imagesFileName;

    @ApiModelProperty(value = "分辨率类型，1:标清，2:高清，3:超清，4：2K超高清，5:4K超高清")
    private Integer imagesDpiType;

    @ApiModelProperty(value = "源标识")
    private String sourceFlag;

    @ApiModelProperty(value = "图片上传人")
    private String imagesUploadUser;

    @ApiModelProperty(value = "图片上传时间")
    private LocalDateTime imagesUploadTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private Integer createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人ID")
    private Integer updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标识，0:正常，1:删除；")
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.imagesId;
    }

}
